const Order = () => import('@/views/order')
// order 子组件
const MyAddress = () => import('@/views/order/childComps/MyAddress')
const AddAddress = () => import('@/views/order/childComps/AddAddress')
const EditAddress = () => import('@/views/order/childComps/EditAddress')
// 订单商品详情页
const OrderGoodsList = () => import('@/views/order/childComps/OrderGoodsList')

export default {
  name: 'Order',
  path: '/order',
  component: Order,
  children: [
    {
      name: 'MyAddress',
      path: 'myAddress',
      component: MyAddress,
      meta: {
        requireAuth: true // 需要验证 
      },
      children: [
        {
          name: 'AddAddress',
          path: 'addAddress',
          component: AddAddress
        },
        {
          name: 'EditAddress',
          path: 'editAddress',
          component: EditAddress
        }
      ]
    },
    {
      name: 'OrderGoodsList',
      path: 'orderGoodsList',
      component: OrderGoodsList
    }
  ]
}
